package listas;

import java.io.IOException;
import java.util.Scanner;

/**
 * @author Alex
 */
public class Listas {

    static int menu;

    public static void main(String[] args) throws IOException {
        Scanner lee = new Scanner(System.in);
        Ingresar Ing = new Ingresar();
        Consultar Con = new Consultar();
        Borrar Brr = new Borrar();
        try {
            do {

                System.out.println("|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|");
                System.out.println("|----Listas Simples Enlazadas----|");
                System.out.println("|-------1.-Ingresar--------------|");
                System.out.println("|-------2.-Consulta--------------|");
                System.out.println("|-------3.-Borrar----------------|");
                System.out.println("|-------4.-Salir-----------------|");
                System.out.println("|________________________________|");

                System.out.println("|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|");
                System.out.println("|----Seleccione la Opción--------|");
                System.out.println("|________________________________|");
                menu = lee.nextInt();


                switch (menu) {
                    case 1:
                        Ing.Ingresar();
                        break;
                    case 2:
                        Con.Consultar();
                        break;
                    case 3:
                        Brr.Borrar();
                        break;
                }
            } while (menu != 4);
        } catch (Exception Ax) {
            System.out.println("Error de captura " + Ax.getMessage());
        }
    }
}
